#ifndef QDECLARATIVESPARTICLESPAINTER_H
#define QDECLARATIVESPARTICLESPAINTER_H

#include <QDeclarativeItem>

class QDeclarativeSParticlesPrivate;
class QDeclarativeSParticlesPainter : public QDeclarativeItem
{
public:
    QDeclarativeSParticlesPainter(QDeclarativeSParticlesPrivate *p, QDeclarativeItem* parent);
//        : QDeclarativeItem(parent), d(p)
//    {
//        setFlag(QGraphicsItem::ItemHasNoContents, false);
////        maxX = minX = maxY = minY = 0;
//    }

    void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *);

    void updateSize();

//    qreal maxX;
//    qreal minX;
//    qreal maxY;
//    qreal minY;
    QDeclarativeSParticlesPrivate* d;
};

#endif // QDECLARATIVESPARTICLESPAINTER_H
